#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QMessageBox>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    QMessageBox* a=new QMessageBox(this);
    a->addButton(QMessageBox::Ok);
    a->setIcon(QMessageBox::Icon::Information);
    a->setText("注册成功");
    a->exec();
}
